<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:jsp="http://java.sun.com/JSP/Page">
<ui:composition>
	<rich:tabPanel id="tabber" switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class"
		inactiveTabClass="inactive_tab" activeTabClass="active_tab" selectedTab="#{componentNavigator.currentComponent.activeTab}"
		valueChangeListener="#{componentNavigator.tabPanelSwitched}">
		<rich:tab name="main" label="#{bundle['windows.tabs.main.title']}">
			<ui:include src="#{componentNavigator.currentComponent.location}/main.xhtml" />
		</rich:tab>
		<rich:tab name="info" label="#{bundle['windows.tabs.info.title']}">
			<!-- This doesn't parse the content but simply displays it with highlighting
			<rich:insert src="#{componentNavigator.currentComponent.location}/info.xhtml"
		 	errorContent="/templates/include/tagInfoNotes.xhtml" />
		 	-->

			<!-- Try to include required page -->
			<c:catch var="NoInfoPageFound">		 	
		 		<ui:include src="#{componentNavigator.currentComponent.location}/info.xhtml" />
		 	</c:catch>
		 	<!-- Include errorContent page if required page doesn't exist -->
		 	<c:if test="#{NoInfoPageFound != null}">
		 		<ui:include src="/templates/include/tagInfoNotes.xhtml" />
		 	</c:if>
		</rich:tab>
	</rich:tabPanel>
</ui:composition>
</html>
